package com.hnichr.ump.common.salon.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_salon_info")
@Schema(description = "沙龙信息表")
public class SalonInfo extends UmpEntity {
    @Id
    @Generator
    @Column(name = "ID_", updatable = false,length = 64)
    @Schema(description = "ID")
    private String id;

    @Schema(description = "沙龙名称")
    @Column(name = "SALON_NAME_")
    private String salonName;

    @Schema(description = "开始时间")
    @Column(name = "START_TIME_")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date startTime;

    @Schema(description = "结束时间")
    @Column(name = "END_TIME_")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endTime;

    @Schema(description = "主办单位")
    @Column(name = "ORGANIZER_")
    private String organizer;

    @Schema(description = "预计人数")
    @Column(name = "ESTIMATE_NM_")
    private Integer estimateNm;

    @Schema(description = "地址")
    @Column(name = "ADDRESS_")
    private String address;

    @Schema(description = "联系人")
    @Column(name = "CONTACTS_PR_")
    private String contactsPr;

    @Schema(description = "联系方式")
    @Column(name = "CONTACTS_INFO_")
    private String contactsInfo;

    @Schema(description = "内容描述")
    @Column(name = "DESCRIBE_",length = 512)
    private String describe;

    @Schema(description = "报名url")
    @Column(name = "APPLY_URL_")
    private String applyUrl;

    @Schema(description = "报名url二维码")
    @Column(name = "APPLY_QRCODE_")
    private String applyQrCode;

    @Schema(description = "签到url")
    @Column(name = "SIGN_IN_URL_")
    private String signInUrl;

    @Schema(description = "签到url二维码")
    @Column(name = "SIGN_IN_QRCODE_")
    private String signInQrCode;

    @Schema(description = "状态  0-报名中 1-已结束")
    @Transient
    private String status;

    @Schema(description = "状态名称")
    @Transient
    private String statusDesc;

    @Schema(description = "会议时间")
    @Transient
    private String meetingTime;

}
